package com.ruoyi.combat.domain.neo4j;

import lombok.Data;
import org.neo4j.ogm.annotation.EndNode;
import org.neo4j.ogm.annotation.RelationshipEntity;
import org.neo4j.ogm.annotation.StartNode;
import org.springframework.data.neo4j.core.schema.GeneratedValue;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Property;
import org.springframework.data.neo4j.core.schema.TargetNode;

/**
 * 预测IP-组织归属关系
 */
@Data
@RelationshipEntity("FORECAST_BELONGS_TO")
public class ForecastOrgRelationship {
    @Id
    @GeneratedValue
    private Long id;

//    @Property
//    private String _type; // 关系类型

    @StartNode
    private IpNode start;

    @EndNode
    private ForecastOrgNode end;
}